package com.atguigu.springcloud.alibaba.service.impl;

import com.atguigu.springcloud.alibaba.dao.NoticeDao;
import com.atguigu.springcloud.alibaba.service.NoticeService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @ClassName NoticeServiceImpl
 * @Desscription
 * @Author _HeiShuai
 * @Date 2023/1/12 15:06
 * @Version 1.0
 **/
@Service
@Slf4j
public class NoticeServiceImpl implements NoticeService {

    @Resource
    private NoticeDao noticeDao;

    @Override
    public void create(Long userId, String content) {
        log.info("------->notice-service发送短信开始");
        noticeDao.create(userId,content);
        log.info("------->notice-service发送短信结束");
    }
}
